home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
graphic
/
chiaro10.zip
/
GIFCHECK.DOC
< prev
next >
Wrap
Text File
|
1993-03-12
|
48KB
|
1,103 lines
GIFCHECK 1.11 DOCUMENTATION
===========================
James W. Birdsall
03/19/93
0. CONTENTS
-----------
0. CONTENTS
1. INTRODUCTION
1.1 Quick Reference
1.2 Copyright, License, and Warranty Disclaimer
2. USAGE
2.1 Targets
2.1.1 Wildcards
2.2 Options
2.2.1 Output redirection options
2.2.2 Output format options
2.2.3 Processing options
2.2.4 Diagnostic options
2.2.5 -# Version
2.2.6 -? Help
3. OUTPUT
3.1 File Header
3.2 Image
3.3 Extension Blocks
3.3.1 Generic extensions
3.3.2 Graphic Control Extension
3.3.3 Plain Text Extension
3.3.4 Comment Extension
3.3.5 Application Extension
3.4 Terminator
4. DIAGNOSTIC MESSAGES
4.1 Anomalies
4.2 Violations
4.3 Fascinatings
4.4 Nitpicks
4.5 Miscellaneous
5. THE END
1. INTRODUCTION
---------------
GIFCHECK is a program of the Chiaro suite. It performs a complete
analysis and verification of GIF-format images and displays the
information it finds. It can also be used in batch files to determine
whether GIF files need to be passed through the GIFSTRIP program to
remove excess characters.
1.1 Quick Reference
-------------------
This is a quick summary of the usage and options of GIFCHECK.
Invoking GIFCHECK with the option "-?" will produce a similar summary.
Complete explanations may be found in section 2.
usage: gifcheck [options] target [target ...]
target filename, filename with wildcards, or path. Wildcards
are *, ?, and ranges or groups specified in []. A
range or group may be complemented with ^ or !.
-b BATCH: suppresses all console output. Should be first
on the line. Returns ERRORLEVEL 0 if OK, 1 if a
non-GIF file was found, 2 if unexpected EOF in a GIF
file, 3 on other error, 4 if the GIF is OK but needs
to be stripped, and 5 if the. GIF is OK but needs to
be stripped with the -m option.
-r Sends error messages to stderr instead of stdout.
-p Turn off paging of output (paging always off when
stdout is redirected or -b BATCH is in effect).
-v VERBOSE: turns on verbose output.
-h HEX DUMP: switches from ASCII to HEX dump for certain
blocks.
-c COLOR DUMP: dumps raw RGB values from all colormaps.
-l Disables checking for leading junk characters (from a
Mac, for example).
-f FAST: disables decompression. Only block formatting
is checked.
-dn SET DISPLAY WARNING LEVEL:
0 displays anomalies and violations
1 (default) displays anomalies, violations, and
fascinatings
2 displays anomalies, violations, fascinatings,
and nitpicks
-en SET EXIT WARNING LEVEL:
0 exits on anomalies only
1 (default) exits on anomalies and violations
2 exits on anomalies, violations, and fascinatings
-# VERSION: Prints version information on internal
modules, then exits.
GIFCHECK automatically reads a list of targets from stdin if stdin is
redirected. Targets must be separated by newlines, and are
wildcard-expanded in the same way as command-line targets. Note that
command-line targets are ignored if stdin is redirected; if stdin is not
redirected, there must be at least one target on the command line.
Options are case-insensitive, and may not be combined.
1.2 Copyright, License, and Warranty Disclaimer
-----------------------------------------------
The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated. GIF(sm) is a Service Mark property of
CompuServe Incorporated.
GIFCHECK is not in the public domain. All the files are copyright
1993 by James W. Birdsall, all rights reserved.
The following license applies to the entire Chiaro suite, which is
made up of all the files listed in the file MANIFEST. Permission is
granted to do the following:
You may freely redistribute this archive, so long as it contains
all the files listed in the file MANIFEST, intact and
unmodified.
You may use the programs contained in this archive for a period
of 30 days for evaluation purposes.
Payment of the $10 shareware fee (which covers all the programs in
the Chiaro suite) licenses you to use the Chiaro suite beyond the
evaluation period. This license-to-use specifically includes use by
bulletin board systems and other commercial or private information
services.
Registered users will also receive update notices and bug reports,
and are entitled to use future versions without further payment.
The contents of the distribution archive, and all other related
files, information, and services are provided "as is" and without
warranty. To the extent permitted by applicable law, the author
disclaims all warranties, express or implied, including but not limited
to, any implied warranty of merchantability or fitness for a particular
purpose. While effort has been made to ensure that the files,
information, and services are accurate and correct, the author shall not
be liable for damages arising out of the use of or inability to use this
product, including but not limited to, loss of profit, data, or use of
this software, or special, incidental, or consequential damages or other
similar claims, even if the author has been specifically advised of the
possibility of such damages. Some states do not allow the exclusion of
incidental or consequential damages, so the foregoing limitation may not
apply to you.
Information on contacting the author is provided at the end of this
file.
2. USAGE
--------
GIFCHECK may be called with zero or more options interspersed with
zero or more targets. All options are scanned before any file searching
is done, so order of options and targets is unimportant. If the standard
input is not redirected, at least one target must be specified on the
command line. If the standard input is redirected (is not the keyboard),
GIFCHECK will detect this and will attempt to read a list of targets,
separated with newlines, from the standard input. Targets on the command
line will be ignored, but options on the command line will be used. This
feature is for use with the "front end" option of CHILS.
GIFCHECK requires 150,000 bytes of free conventional memory to run.
2.1 Targets
-----------
A target can consist of a filename (optionally with path), a path, or
a filename with wildcards (again, optionally with path). In the case of
a filename, that file is checked. In the case of a path, all files in
the specified directory are checked. In the case of a filename with
wildcards, all files in the appropriate directory (the current directory
if no path is given) matching the wildcards are checked.
If a file that is checked is a GIF format file, it is processed. If
it is not, it is not processed.
2.1.1 Wildcards
---------------
Wildcards are much closer to the UNIX standard than MS-DOS. The
characters * and ? retain their ordinary meanings but matching is much
more intelligent. For example, *A.GIF will match LENNA.GIF but not
CHESS.GIF, whereas under ordinary MS-DOS wildcards, *A.GIF would match
both. Further, groups and ranges of characters may be specified in
brackets []. For example, PIC0[1-5].GIF will match any filename starting
with "PIC0", then containing any one of the characters "1", "2", "3",
"4", or "5", and ending with ".GIF". PIC0[1-5A-F].GIF will match the
names